Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: apply eslint to .js files as well #19538

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

jelly
Copy link
Member

@jelly jelly commented Oct 27, 2023

We want to lint all our JavaScript code, this would trip over tools/webpack-make.js as it's a shell script. Ignorning it still gives an eslint warning so this has to be converted to a proper JavaScript file.

We want to lint all our JavaScript code, this would trip over
tools/webpack-make.js as it's a shell script. Ignorning it still gives
an eslint warning so this has to be converted to a proper JavaScript
file.
@jelly jelly added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Oct 27, 2023
Comment on lines +1 to +3
#!/bin/env node
console.error("This got renamed to ./build.js. Please see HACKING.md");
process.exit(1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be in favor of just dropping this. It's been long enough now, this was only meant to adjust our muscle memory.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, but someone suggested switching it over. Let's drop it in March then :)

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That said, this is a good change of course, thanks!

@jelly jelly merged commit cbfb1a0 into cockpit-project:main Oct 27, 2023
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-test For doc/workflow changes, or experiments which don't need a full CI run,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants